package com.demo.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.demo.dao.DemoDao;
import com.system.database.DS;

@Service
public class DemoService {
	@Resource
	private DemoDao demoDao;
	@DS("formDb")
	public Map<String,Object> getEntity(String id){
        return demoDao.getEntity(id);
	}
	public List<Map<String,Object>> getList(Map<String,Object> param){
		return demoDao.listEntityMap(param);
	}
}
